#pragma once
#include "afxwin.h"

typedef int (__cdecl *PTCL_Dial_Number)(int a1, const void* a2);
typedef int (__cdecl *PTCL_Read_Version)(void *a1, size_t a2);
typedef int (__cdecl *PTCL_Read_Serial_Num)(void *a1, size_t a2);
typedef int (__cdecl *PTCL_StartRecording)(int a1, char* pszRecordFile);
typedef int (__cdecl *PTCL_StopRecording)();

typedef int (*PTCL_Box_CallBack)(int a1, int a2, LPCSTR lpMultiByteStr, const CHAR *a4, int a5, int a6);
typedef int (__cdecl *PTCL_Box_Open)(PTCL_Box_CallBack);

typedef int (__cdecl *PModule_Exit)();
typedef int (__cdecl *PTCL_Dial_Dtmf)(int a1, int a2);
typedef int (__cdecl *PTCL_Msg_Send)(int a1, int a2, LPCSTR lpMultiByteStr);
typedef int (__cdecl *PTCL_Hang_Up)();
typedef signed int (__cdecl *PTCL_Answer)();
typedef signed int (__cdecl *PTCL_Read_Sim_Card_Status)();
typedef signed int (__cdecl *PTCL_Read_Csq_Status)();
typedef signed int (__cdecl *PTCL_Read_Reg_Status)();
typedef signed int (__cdecl *PSetWirelessPhoneLog)(char *pwszLogPath, int);

PSetWirelessPhoneLog	SetWirelessPhoneLog;
PTCL_Box_Open			TCL_Box_Open;
PModule_Exit			Module_Exit;
PTCL_Dial_Number		TCL_Dial_Number;
PTCL_Dial_Dtmf			TCL_Dial_Dtmf;
PTCL_Hang_Up			TCL_Hang_Up;
PTCL_Answer				TCL_Answer;
PTCL_StartRecording		TCL_StartRecording;
PTCL_StopRecording		TCL_StopRecording;

extern void initTclRadiophone();

extern int callBack(int a1, int a2, const char* lpMultiByteStr, const char *a4, int a5, int a6);

